#include <iostream>
#include <fstream>
#include <string>
int main() {
    std::string filename;
    std::ofstream fout;
    std::cout<<"请输入要写入文件的名称:"<<"\n";
    std::cin>>filename;
    fout.open(filename.c_str());
    char ch;

    while(ch!='\n')
    {
        fout<<ch;
    }
    fout.close();
    return 0;
}